﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using CommunitySystemModel;

namespace CommunitySystem.Web.Service
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码和配置文件中的接口名“IGuaZhiDuanLianService”。
    [ServiceContract]
    public interface IGuaZhiDuanLianService
    {
        [OperationContract]
        ObservableCollection<GuaZhiDuanLianJiHuaModel> GetGuaZhiDuanLianJiHuaModel(int zhaoluid, string islocked, int year);
        [OperationContract]
        ObservableCollection<GuaZhiDuanLianJiHuaModel> GetGuaZhiDuanLianJiHuaModelForCom(string status);
        [OperationContract]
        int InsertJuZhuanAnZhiJiHuaTitle(GuaZhiDuanLianJiHuaModel ZhaoLuJiHua);
        [OperationContract]
        bool DeleteJuZhuanAnZhiJiHua(int id);
        [OperationContract]
        bool SuoJuZhuanAnZhiJiHua(int id);
        [OperationContract]
        ObservableCollection<Emp_BasicInfoModel> GetGuaZhiDuanLianEmpModel(string empids);
        [OperationContract]
        ObservableCollection<GuaZhiEmpModel> GetGuaZhiDuanLianEmpZongModel(int jihuaid, string orgids, string status, ObservableCollection<int> id);
        [OperationContract]
        bool CheckGuaZhiEmp(string ID);
        [OperationContract]
        bool TuiGuaZhiEmp(string ID, string memo);
        [OperationContract]
        bool CancelGuaZhiEmp(string ID);
        [OperationContract]
        bool ZhiWeiAnPai(string ID, GuaZhiEmpModel model, ObservableCollection<GuaZhiEmpModel> list);
        [OperationContract]
        bool InsertGuaZhiEmp(string empids, int exameid);
        [OperationContract]
        bool UpdateShiJian(GuaZhiEmpModel model);
        [OperationContract]
        bool YanQiGuaZhiEmp(string ID, string memo, DateTime? riqi);
        [OperationContract]
        bool ShenHeYanQiGuaZhiEmp(string ID, string istongyi);
        [OperationContract]
        bool ZhongZhiGuaZhiEmp(string ID, string memo, DateTime? riqi);
        [OperationContract]
        bool ShenHeShenHeYanQiGuaZhiEmp(string ID);
        [OperationContract]
        bool GetGuaZhiDuanLianEmps(int jihuaid, string empbasicids);
        [OperationContract]
        bool UpdateGuaZhi_ZhengShen(GuaZhiEmpModel model);
        [OperationContract]
        ObservableCollection<GuaZhi_AttatchmentModel> GetZhaoLuZhengShen_Attatchment(int id);
        [OperationContract]
        bool GuaZhiJieShu(string ID, DateTime? dt, int guazhijihuaid);

        #region 借用管理
          [OperationContract]
        bool SaveJY(Emp_JYModel entity, bool isAdd);
          [OperationContract]
        bool JYJS(Emp_JYModel entity);
          [OperationContract]
        bool JYDel(string con);
          [OperationContract]
        ObservableCollection<Emp_JYModel> GetJY(string con, int index, int pagesize);
          [OperationContract]
        int GetJYCount(string con);
        #endregion
    }
}
